package allwe.bean;

import java.util.List;

public class Cat {
    private String name;

    private List<Mouse> mouseList;

    public Cat() {
    }

    public Cat(String name, List<Mouse> mouseList) {
        this.name = name;
        this.mouseList = mouseList;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Mouse> getMouseList() {
        return mouseList;
    }

    public void setMouseList(List<Mouse> mouseList) {
        this.mouseList = mouseList;
    }

    @Override
    public String toString() {
        return "Cat{" +
                "name='" + name + '\'' +
                ", mouseList=" + mouseList +
                '}';
    }
}
